.class public Lcom/example/m6wmr/SelectAddressActivity;
.super Landroid/app/Activity;
.source "SelectAddressActivity.java"


# static fields
.field public static address:Lcom/example/m6wmr/SelectAddressActivity;


# instance fields
.field addresslaout:Landroid/widget/LinearLayout;

.field private addressls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/AddressBean;",
            ">;"
        }
    .end annotation
.end field

.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private editid:I

.field private goint:I

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 65
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 66
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->areaid:Ljava/lang/String;

    .line 67
    iput-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity;->m:Lmyapp/MyApp;

    .line 70
    iput-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity;->h:Landroid/os/Handler;

    .line 72
    iput-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 73
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->mHandler:Landroid/os/Handler;

    .line 74
    iput-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity;->pd:Landroid/app/ProgressDialog;

    .line 75
    iput-boolean v2, p0, Lcom/example/m6wmr/SelectAddressActivity;->loaddata:Z

    .line 76
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->shopid:Ljava/lang/String;

    .line 77
    iput-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity;->goodsstr:Ljava/lang/String;

    .line 80
    iput-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    .line 83
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->shopstr:Ljava/lang/String;

    .line 84
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->pingstr:Ljava/lang/String;

    .line 85
    iput v2, p0, Lcom/example/m6wmr/SelectAddressActivity;->goint:I

    .line 87
    iput v2, p0, Lcom/example/m6wmr/SelectAddressActivity;->editid:I

    .line 65
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 69
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/SelectAddressActivity;I)V
    .locals 0

    .prologue
    .line 87
    iput p1, p0, Lcom/example/m6wmr/SelectAddressActivity;->editid:I

    return-void
.end method

.method static synthetic access$10(Lcom/example/m6wmr/SelectAddressActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 83
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->shopstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/SelectAddressActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 84
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->pingstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/SelectAddressActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 76
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/SelectAddressActivity;)I
    .locals 1

    .prologue
    .line 85
    iget v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->goint:I

    return v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/SelectAddressActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 79
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/SelectAddressActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 80
    iput-object p1, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 80
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/SelectAddressActivity;)I
    .locals 1

    .prologue
    .line 87
    iget v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->editid:I

    return v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/content/ContentValues;
    .locals 1

    .prologue
    .line 82
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->cv:Landroid/content/ContentValues;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/SelectAddressActivity;I)V
    .locals 0

    .prologue
    .line 85
    iput p1, p0, Lcom/example/m6wmr/SelectAddressActivity;->goint:I

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method


# virtual methods
.method public bindbtn()V
    .locals 3

    .prologue
    .line 356
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/SelectAddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 357
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/SelectAddressActivity$4;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/SelectAddressActivity$4;-><init>(Lcom/example/m6wmr/SelectAddressActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 370
    const v2, 0x7f0c0016

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/SelectAddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/example/location/BottomMenu;

    .line 371
    .local v1, "menu":Lcom/example/location/BottomMenu;
    const-string v2, "index"

    invoke-virtual {v1, v2}, Lcom/example/location/BottomMenu;->SetOn(Ljava/lang/String;)V

    .line 373
    return-void
.end method

.method public bingdata()V
    .locals 13

    .prologue
    const v12, 0x7f0c0224

    const v11, 0x7f0c00d6

    const v10, 0x7f0c000a

    const/4 v9, 0x0

    .line 278
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v6}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v6

    .line 279
    const-string v7, "select * from address"

    .line 278
    invoke-virtual {v6, v7, v9}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    .line 280
    const/4 v1, 0x0

    .line 282
    .local v1, "goodscount":I
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    invoke-virtual {v6}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 283
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    if-eqz v6, :cond_0

    .line 284
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-nez v6, :cond_1

    .line 335
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f03004f

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 336
    .local v4, "tempview":Landroid/view/View;
    const v6, 0x7f0c0218

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 337
    .local v5, "toadd":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/m6wmr/SelectAddressActivity$3;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/SelectAddressActivity$3;-><init>(Lcom/example/m6wmr/SelectAddressActivity;)V

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 351
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 354
    return-void

    .line 285
    .end local v4    # "tempview":Landroid/view/View;
    .end local v5    # "toadd":Landroid/widget/LinearLayout;
    :cond_1
    const/4 v4, 0x0

    .line 286
    .restart local v4    # "tempview":Landroid/view/View;
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "is_default"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v6

    const/4 v7, 0x1

    if-ne v6, v7, :cond_2

    .line 287
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f030051

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 288
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "id"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v6

    invoke-virtual {v4, v6}, Landroid/view/View;->setId(I)V

    .line 289
    invoke-virtual {v4, v12}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 290
    .local v3, "phone":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "phone"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 291
    invoke-virtual {v4, v11}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 292
    .local v0, "addressname":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "address"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 293
    invoke-virtual {v4, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 294
    .local v2, "imageView1":Landroid/widget/ImageView;
    const/4 v6, 0x0

    invoke-virtual {v2, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 307
    :goto_1
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 309
    new-instance v6, Lcom/example/m6wmr/SelectAddressActivity$2;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/SelectAddressActivity$2;-><init>(Lcom/example/m6wmr/SelectAddressActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    .line 296
    .end local v0    # "addressname":Landroid/widget/TextView;
    .end local v2    # "imageView1":Landroid/widget/ImageView;
    .end local v3    # "phone":Landroid/widget/TextView;
    :cond_2
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f030050

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 297
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "id"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v6

    invoke-virtual {v4, v6}, Landroid/view/View;->setId(I)V

    .line 298
    invoke-virtual {v4, v12}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 299
    .restart local v3    # "phone":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "phone"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 300
    invoke-virtual {v4, v11}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 301
    .restart local v0    # "addressname":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "address"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 302
    invoke-virtual {v4, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 303
    .restart local v2    # "imageView1":Landroid/widget/ImageView;
    const/16 v6, 0x8

    invoke-virtual {v2, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_1
.end method

.method public getDataCount(Ljava/lang/String;)J
    .locals 3
    .param p1, "tableName"    # Ljava/lang/String;

    .prologue
    .line 272
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 273
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "select count(*) from "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 272
    invoke-virtual {v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    .line 274
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 275
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    return-wide v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 90
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 91
    const v3, 0x7f030004

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/SelectAddressActivity;->setContentView(I)V

    .line 93
    invoke-virtual {p0}, Lcom/example/m6wmr/SelectAddressActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->m:Lmyapp/MyApp;

    .line 94
    iget-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 95
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 96
    iput-object p0, p0, Lcom/example/m6wmr/SelectAddressActivity;->mcontext:Landroid/content/Context;

    .line 97
    sput-object p0, Lcom/example/m6wmr/SelectAddressActivity;->address:Lcom/example/m6wmr/SelectAddressActivity;

    .line 99
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->addressls:Ljava/util/List;

    .line 101
    invoke-virtual {p0}, Lcom/example/m6wmr/SelectAddressActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 102
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->shopid:Ljava/lang/String;

    .line 104
    new-instance v3, Ldbclass/DBOpenHelper;

    iget-object v4, p0, Lcom/example/m6wmr/SelectAddressActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v3, v4}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->helper:Ldbclass/DBOpenHelper;

    .line 105
    iget-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v3}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 106
    new-instance v3, Landroid/content/ContentValues;

    invoke-direct {v3}, Landroid/content/ContentValues;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->cv:Landroid/content/ContentValues;

    .line 107
    const v3, 0x7f0c00ca

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/SelectAddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    .line 110
    const/high16 v3, 0x7f0c0000

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/SelectAddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 111
    .local v2, "top":Landroid/widget/LinearLayout;
    iget-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 112
    const v3, 0x7f070026

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 114
    :cond_0
    new-instance v3, Lcom/example/m6wmr/SelectAddressActivity$1;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/SelectAddressActivity$1;-><init>(Lcom/example/m6wmr/SelectAddressActivity;)V

    iput-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity;->h:Landroid/os/Handler;

    .line 266
    invoke-virtual {p0}, Lcom/example/m6wmr/SelectAddressActivity;->bindbtn()V

    .line 270
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 403
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 404
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 405
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 407
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 408
    iget-object v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 410
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v2, 0x0

    .line 387
    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    .line 388
    iget v0, p0, Lcom/example/m6wmr/SelectAddressActivity;->goint:I

    .line 389
    .local v0, "checkgo":I
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 390
    iput v2, p0, Lcom/example/m6wmr/SelectAddressActivity;->goint:I

    .line 391
    invoke-virtual {p0}, Lcom/example/m6wmr/SelectAddressActivity;->bingdata()V

    .line 398
    .end local v0    # "checkgo":I
    :cond_0
    :goto_0
    return v2

    .line 394
    .restart local v0    # "checkgo":I
    :cond_1
    invoke-virtual {p0}, Lcom/example/m6wmr/SelectAddressActivity;->finish()V

    goto :goto_0
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 381
    invoke-virtual {p0}, Lcom/example/m6wmr/SelectAddressActivity;->bingdata()V

    .line 382
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 383
    return-void
.end method
